Search results
12 packages found
This little utility helps in finding null, undefined etc values from objects and arrays.
Helps you deny the existence of specified truthy values (e.g. 'someString', aParticularObject)
Helps you confirm the existence of specified falsy values (e.g. 0)
DWIM-er for turning boring old string values into what you actually meant.
Test if a value is an array-like object containing only truthy values.
Test if a value is an array-like object containing only falsy values.
Convert property values in objects to booleans.
Returns a copy of the array/object with all falsy values removed.
Returns a new object with ALL object properties with [falsy values](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) removed. ## Install ```sh npm install only-truthy ```
This package includes a set of useful array methods that facilitates working with arrays, specifically the arrays that contain objects or arrays even falsy values (such as: 0, null, false, NaN...). This package is es5 supported.
- array
- methods
- functions
- unique
- includes
- split
- search
- range
- shuffle
- fill
- arrange
- randomize
- numeric
- remove
- View more